<template>
    <div>
      <object :data="pdfSrc" type="application/pdf" width="100%" height="1080px;">
        <p>您的浏览器不支持嵌入 PDF 文件，请使用下载链接查看该文件。</p>
      </object>
    </div>
  </template>
  
  <script>
  export default {
    data() {
      return {
        pdfSrc: 'http://127.0.0.1:82/welder-second/upload/5dd7751a5c55fd3473ba375f/d/20230720/6b950997-dc4c-441a-9f68-2dd9aa29a23a.pdf',
      };
    },
    mounted: function () {
      //this.pdfSrc=this.$route.params.pdfSrc
    
      this.$nextTick(function () {
        console.log(this.$route.params.pdfSrc);
      })
      //console.log(this.$route.params);
    
  },
  };
  </script>